import os
from threading import Thread


def a(aa):
    if not os.path.exists(f'./photos'): os.mkdir(f'./photos/{aa}')


global t
for i in range(2):
    t = Thread(target=a, args=('aa',))
    t.start()
t.join()
